package com.kcwl.carrier.domain.service;

import com.kcwl.carrier.domain.entity.VehiclePlateCityRef;
import com.kcwl.carrier.domain.repository.IVehiclePlateCityRefRepository;
import com.kcwl.framework.utils.KcBeanConverter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class VehiclePlateCityRefDomainService {

    @Resource
    private IVehiclePlateCityRefRepository refRepository;

    public VehiclePlateCityRef queryByPlateNo(String plateNumber) {
        return KcBeanConverter.toBean(refRepository.queryByPlateNo(plateNumber), VehiclePlateCityRef.class);
    }
}
